///////////////////////////////////////////////////////////////////////////////
// Name:        localhistintegral.h
// Purpose:     Local histogram integral function
// Copyright:   (c) 2006, Ivan Laptev, TT Solutions
// License:     GPL, Please contact us for commercial license.
//              http://www.tt-solutions.com/
///////////////////////////////////////////////////////////////////////////////
#ifndef LOCALHISTINTEGRAL_H_
#define LOCALHISTINTEGRAL_H_

#include "objectdet/common.h"

//h=localhistintegral(inthist,x1,y1,ww,wh,htype,normflag)
//
//    Computes local histogram from an integral histogram 'inthist'
//    htype = {1|2|3|4} / default=1 (see code)


//h=localhistintegral(inthist,x1,y1,ww,wh,htype,normflag)
/**
 * Compute local histogram for a subwindow from an integral histogram
 * according to the 'rule.type'.
 */
void localhistintegral(StageRule const & rule,                          // <- input
                       arrMat integral_block_histogram,               // <- input
                       size_t channels,                                   // <- input
                       size_t left, size_t top, size_t width, size_t height,    // <- input
                       std::vector<double> & feature);                  // <- output

#endif

